package org.zhadoop.stream.cql.semanticanalyzer.parser.context;

import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.expressiondesc.ExpressionDescribe;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextreplacer.ParseContextReplacer;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextwalker.ParseContextWalker;

/**
 * equalrelationexpression 解析内容
 * 
 * @author zwd
 *
 */
public class EqualRelationExpressionContext extends BaseExpressionParseContext {

	// IsNullLikeInExpressionsContext
	private BaseExpressionParseContext nullLike;

	private BaseExpressionParseContext exists;

	public BaseExpressionParseContext getNullLike() {
		return nullLike;
	}

	public void setNullLike(BaseExpressionParseContext nullLike) {
		this.nullLike = nullLike;
	}

	public BaseExpressionParseContext getExists() {
		return exists;
	}

	public void setExists(BaseExpressionParseContext exists) {
		this.exists = exists;
	}

	@Override
	public void walkChildAndReplace(ParseContextReplacer replacer) {
		// TODO Auto-generated method stub

	}

	@Override
	protected ExpressionDescribe createExpressionDesc() throws SemanticAnalyzerException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String toString() {
		if (nullLike != null) {
			return nullLike.toString();
		}
		return exists.toString();
	}

	@Override
	protected void walkChild(ParseContextWalker walker) {
		// TODO Auto-generated method stub

	}

}
